package com.example.demo.collectionexorection;

/**
 * @Description Card
 * @Author songchuanlong
 * @Date 2025-05-16
 */
public class Card {
    /**
     * 数字或者字母
     */
    private String number;
    /**
     * 花色
     */
    private String color;
    /**
     * 比较牌的大小
     */
    private int size;

    public Card() {
    }

    @Override
    public String toString() {
        return color+number;
    }

    public Card(String number, String color, int size) {
        this.number = number;
        this.color = color;
        this.size = size;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

}
